local skel = fk.CreateSkill{
  name = "lb__junshi",
  tags = {Skill.Compulsory}
}

Fk:loadTranslationTable{
  ["lb__junshi"] = "军势",
  [":lb__junshi"] = "<b>锁定技</b>，每回合限一次，当一名角色于额外的阶段或回合造成伤害后，你回复1点体力。",

  ["$lb__junshi1"] = "将我们所失去的，全部夺回。",
  ["$lb__junshi2"] = "援助来得很及时。",
}

skel:addEffect(fk.Damage, {
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    local phase = player.room.logic:getCurrentEvent():findParent(GameEvent.Phase)
    return player:hasSkill(skel.name) and player:usedSkillTimes(skel.name) == 0 and player:isWounded()
    and (target:insideExtraTurn() or (phase and phase.data.who == target and phase.data.reason ~= "game_rule"))
  end,
  on_use = function(self, event, target, player, data)
    player.room:recover({who = player, num = 1, skillName = skel.name, recoverBy = player})
  end,
})

return skel